/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package dwa;

import java.text.DecimalFormat;

/**
 *
 * @author Wichrowski
 */
public class Wierzcholek {

    private int x, y;

    public Wierzcholek(int kind, int number) {
        this.x = kind;
        this.y = number;
    }

    public int kind() {
        return x;
    } // kind is the name of each vertices

    public int number() {
        return y;
    } // number is the number of edges incident to one vertex.

    public String toString() {
        DecimalFormat df = new DecimalFormat("0.##");
        return "{" + df.format(x) + "," + df.format(y) + "}";

    }
};
